package com.zh.work.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @version 1.0
 * @Description : 骏聿日志实体类
 * @Author : chenfei
 * @Create in : 2020/10/21 16:08
 */
@Document(collection = "jy_api")
@Data
public class JunyuLogEntity extends BaseRowModel implements Serializable {
    private static final long serialVersionUID = 7668217791358018175L;

    @ApiModelProperty(value = "主键id", name = "id")
    @Id
    @Field("_id")
    private String id;

    @ExcelProperty(value ="响应结果" ,index = 0 )
    @ApiModelProperty(value = "result", name = "result")
    private String result;

    @ExcelProperty(value ="手机类型" ,index = 6 )
    @ApiModelProperty(value = "stype", name = "stype")
    private String stype;

    @ExcelProperty(value ="客户号" ,index = 2 )
    @ApiModelProperty(value = "uid", name = "uid")
    private String uid;

    @ExcelProperty(value ="超时时间" ,index = 3 )
    @ApiModelProperty(value = "timed", name = "timed")
    private String timed;

    @ExcelProperty(value ="状态码" ,index = 4 )
    @ApiModelProperty(value = "flag", name = "flag")
    private String flag;

    @ExcelProperty(value ="方法名称" ,index = 10 )
    @ApiModelProperty(value = "method", name = "method")
    private String method;

    @ExcelProperty(value ="姓名" ,index = 5 )
    @ApiModelProperty(value = "sname", name = "sname")
    private String sname;

    @ExcelProperty(value ="照片" ,index = 6 )
    @ApiModelProperty(value = "sphoto", name = "sphoto")
    private String sphoto;

    @ExcelProperty(value ="身份证号码" ,index = 7 )
    @ApiModelProperty(value = "sid", name = "sid")
    private String sid;

    @ExcelProperty(value ="创建时间" ,index = 1 )
    @ApiModelProperty(value = "timestamp", name = "timestamp")
    private String timestamp;

    @ExcelProperty(value ="手机号码" ,index = 8 )
    @ApiModelProperty(value = "smobile", name = "smobile")
    private String smobile;


    @ExcelProperty(value ="银行卡号" ,index = 9 )
    @ApiModelProperty(value = "sbankCard", name = "sbankCard")
    private String sbankCard;


    @ExcelProperty(value = "级别类型 1-off、2-fatal、3-error、4-warn、5-info、6-debug、7-trace、 8-all",index =10 )
    @ApiModelProperty(value = "级别类型", name = "levelType")
    private Integer levelType;
}
